
/* $id:sysConfig.h  V1.0 2002/02/01 */

/******************************************************************************
 *  This source code has been made available to you by SEIKO EPSON  on
 *  AS-IS.Anyone receiving this source is licensed under
 *  SEIKO EPSON copyrights to use it in any way he or she deems fit,including
 *  copying it,modifying it,compiling it,and redistributing it either with
 *  or without modifictions.
 *
 *
 *  Any person who transfers this source code or any derivative work must
 *  include the SEIKO EPSON copyright notice, this paragraph,and the preceding
 *  two paragraphs in the transferred software.
 *
 *
 *       COPYRIGHT SEIKO EPSON CORPORATION 2002
 *     LICENSED MATERIAL - PROGRAM PROPERTY OF EPSON
 *****************************************************************************/

/******************************************************************************
 *
 *  FILE: sysConfig.h
 *
 *  MODULE:
 *
 *  PURPOSE: For the user to config the system .
 *
 *  AUTHOR(S):xxlin
 *
 *  GROUP:WAP_GROUP
 *
 *  DATE CREATED:2002/02/01
 *
 *  REFERENCE DOCUMENT ID:
 *
 *  MODIFICATIONS:
 *  Date          user Name       Description
 *  2002/02/01    xxlin        Create this file
 *
 *********************************************************************************/
#ifndef _SYSCONFIG_H
#define _SYSCONFIG_H


 /* if your system include  DDI module define this */
 #define  DDI_SYSTEM_MODULE

 /* if your system include Power manager ,define this */
 #define  PWR_SYSTEM_MODULE

 /* if your system include  GUI module define this */
 #define  GUI_SYSTEM_MODULE

 /* if your system include EDB ,define this */
 #define  EDB_SYSTEM_MODULE

  /* if your system include File ,define this */
// #define  FILE_SYSTEM_MODULE


 /*************************************************************************
 *																		 *
 *                       DDI   Syetem's   Configuration                  *
 *																		 *
 *************************************************************************/
#ifdef  DDI_SYSTEM_MODULE

 #define 	DDI_NUMBER_OF_DRIVERS		16   /* maximum number of drivers */

#endif  /* end of #ifdef DDI_SYSTEM_MODULE */


/*************************************************************************
 *																		 *
 *              Power Management Syetem's Configuration                  *
 *																		 *
 *************************************************************************/
#ifdef PWR_SYSTEM_MODULE

 #define 	PWR_DEVICE_AMOUNT_LIMIT		32		/* upper limit of the device amount */
 #define 	PWR_MIN_LIMIT				60		/* minute */
 #define 	PWR_HOUR_LIMIT				24		/* hour */
 #define 	PWR_DAY_LIMIT				30		/* day */

#endif  /* end of #ifdef  PWR_SYSTEM_MODULE  */

 /*************************************************************************
 *																		 *
 *                    GUI   Syetem's Configuration                       *
 *																		 *
 *************************************************************************/
#ifdef GUI_SYSTEM_MODULE
//<<<<<< changed by David Gao 2005/4/18
 #define GUI_LCDWIDTH 		320		//240
 #define GUI_LCDHEIGHT 		240		//160
 #define GUI_BITSPERPIXEL 	2		//16
//>>>>>> changed by David Gao 2005/4/18

#endif   /* end of #ifdef GUI_SYSTEM_MODULE  */


 /*************************************************************************
 *																		 *
 *                     File Syetem's Configuration                       *
 *																		 *
 *************************************************************************/
#ifdef FILE_SYSTEM_MODULE
 /* Buffer number of FATFS */
 #define 	FAT_BUF_NUM					4

 /* File Node number of EFS */
 #define 	EFS_FNODE_NUMBER			8

#endif   /* end of  #ifdef  FILE_SYSTEM_MODULE  */


/*************************************************************************
 *																		 *
 *                     EDB  Syetem's Configuration                       *
 *																		 *
 *************************************************************************/
#ifdef EDB_SYSTEM_MODULE

 #define   	EDB_COLDEF_NAME_MAX_LEN   	24	/*max length of column name*/
 #define   	EDB_USERNAME_MAX_LEN        32	/*max length of user's name*/
 #define  	EDB_CIPHER_MAX_LEN          12	/*max length of user's cipher*/

 /*********restricted by file system*****/
 #define   	EDB_TBNAME_MAX_LEN         	13	/*max length of basic table's name including suffix*/
											/*basic table's name based on '8+3' style*/
 #define	EDB_PRENAME_MAX_LEN			8	/*max length of basic table's name not including suffix */
 #define	EDB_PATH_LENGTH				256 /*length of path*/
 /*********restricted by file system*****/

 #define   	EDB_MAX_COL_NUM             16	/*max column numbers of basic table*/
 #define   	EDB_MAX_ROW_NUM             20000/*max row numbers of basic table*/

 #define   	EDB_ASCEND               	0 	/*sort by ascending*/
 #define   	EDB_DESCEND             	1	/*sort by descending*/


 #define   	EDB_MAX_BTB_OPENED      	4	/*max open basic table numbers in EDB system in the same time*/
 #define	EDB_INDEX_MAX_NUMBER		4   /*max index numbers could be created in a  basic table*/

 #define	EDB_WORK_PATH				"a:\\edb"/*path of EDB system*/


 #define  	EDB_RECSET_SIZE				200	/*sort item's structure numbers*/
 #define	EDB_RECSET_ITEM_NUM			200 /*max number of records can be put into result set buffer*/
 /*
 #define  	EDB_RECSET_SIZE	4
 #define	EDB_RECSET_ITEM_NUM	4
 */
 #define   	EDB_OUTPUT_BUF_SIZE			5	/*basic table's output buffer size*/

/*******************************************************************************************
 *  if the numbers of total items in dictionary table is bigger than EDB_DICTB_TOTALITEM
 *  and the ratio of valid items and totao items is bigger than EDB_DICTB_VALIDTOTAL_RATIO,
 *  do fragment collate to the dictionary table.
 ******************************************************************************************/
 #define	EDB_DICTB_TOTALITEM			30
 #define	EDB_DICTB_VALIDTOTAL_RATIO	0.7


#endif  /* end of #ifdef EDB_SYSTEM_MODULE */

#endif  /* end of #ifdef _SYSCONFIG_H */